package com.liyuxiang.yygh.order.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liyuxiang.yygh.model.order.OrderInfo;
import com.liyuxiang.yygh.vo.order.OrderCountQueryVo;
import com.liyuxiang.yygh.vo.order.OrderQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId);

    boolean cancelOrder(Long orderId);

    Page<OrderInfo> getOrderPageByUserId(Page<OrderInfo> orderInfoPage, OrderQueryVo orderQueryVo,Long userId);

    OrderInfo getOrderById(Long id);

    /**
     * 就诊通知
     */
    void patientTips();

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
